{include file='header.html'}
<table>
    <tr> 
        <th>Имя</th>
        <th>Операции</th>
    </tr>
{foreach from=$categories item=d}
<tr>
    <td> <a href="/category/{$d->getId()}" > {$d->name}</a></td>
    <td><a href="{geturl route='editcategory' id=$d->getId()}">Редактировать</a> | 
    <a href="{geturl route='deletecategory' id=$d->getId()}">Удалить</a></td>
</tr>
{/foreach}
</table>
{include file='footer.html'}